import cv2
import json

from mydetect import load_model, detect


if __name__ == '__main__':
    image = cv2.imread("images/zidane.jpg")
    # cv2.imshow("a", image)
    # cv2.waitKey(0)
    md, nms = load_model()
    res = detect(image, md, nms)
    print(json.dumps(res))
    print(res)
